import request from '@/router/axios';

/**
 * 通过id获取用户
 * @param {*} data 
 * @returns 
 */
export const get = (data) => request({
  url: '/sys/user/get',
  method: 'post',
  data
});
/**
 * 分页查询用户
 * @param {*} data 
 * @returns 
 */
 export const list = (data) => request({
  url: '/sys/user/list',
  method: 'post',
  data
});
/**
 * 删除用户
 * @param {*} data 
 * @returns 
 */
 export const remove = (data) => request({
  url: '/sys/user/remove',
  method: 'post',
  data
});
/**
 * 添加用户
 * @param {*} data 
 * @returns 
 */
 export const save = (data) => request({
  url: '/sys/user/save',
  method: 'post',
  data
});
/**
 * 修改用户
 * @param {*} data 
 * @returns 
 */
 export const update = (data) => request({
  url: '/sys/user/update',
  method: 'post',
  data
});